import { createRouter, createWebHistory } from "vue-router";
import Home from "@/pages/home.vue";
import Blog from "@/pages/blog.vue";
import About from "@/pages/about.vue";

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: "/yu-jun",
      redirect: "/yu-jun/home",
    },
    {
      path: "/yu-jun/home",
      component: Home,
    },
    {
      path: "/yu-jun/blog",
      component: Blog,
    },
    {
      path: "/yu-jun/about",
      component: About,
    },
  ],
});
export default router;
